package webApiEntities.Requests;

import java.util.ArrayList;

import entities.*;
import webApiEntities.MessageType;
import webApiEntities.Responses.IResponseMessage;
import webApiEntities.Responses.TheaterResponseMessage;

public class TheaterRequestMessage extends BasicRequestMessage {

	public TheaterRequestMessage(ArrayList<Class<?>> byType, ArrayList<ArrayList<Entity>> byObj) {
		super(MessageType.Theater, byType, byObj);
	}

	@Override
	public IResponseMessage HandleRequest() throws Exception {
		// VLN: until that i will return always the same 2 movies.
		Theater theater1 = new Theater("yes-planet");
		Theater theater2 = new Theater("cinema-city");
		
		ArrayList<Entity> requestedTheaters = new ArrayList<Entity>();
		requestedTheaters.add(theater1);
		requestedTheaters.add(theater2);
		
		TheaterResponseMessage responseMessage = new TheaterResponseMessage(requestedTheaters);
		
		return responseMessage;
	}

}
